package com.hsgene.order.condition;

import com.hsgene.common.util.support.LimitHelper;
import org.apache.commons.lang.StringUtils;

/**
 * @desc: 订单分配列表查询条件
 * @author: 江承良
 * @date: 2018/10/16 13:59
 */
public class DistributeOrderCondition {
    /**
     * 订单编号
     */
    private String oderNo;

    /**
     * 收件人姓名
     */
    private String consigneeName;

    /**
     * 检测人名称
     */
    private String testName;

    /**
     * 下单开始时间
     */
    private String startTime;

    /**
     * 下单结束时间
     */
    private String endTime;

    /**
     * 排序类型
     */
    private String sortType;

    /**
     * 分页条件
     */
    private LimitHelper limitHelper;

    public String getOderNo() {
        return oderNo;
    }

    public void setOderNo(String oderNo) {
        this.oderNo = oderNo;
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getTestName() {
        return testName;
    }

    public void setTestName(String testName) {
        this.testName = testName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        if(StringUtils.isNotEmpty(startTime)){
            startTime = startTime+" 00:00:00";
        }
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        if(StringUtils.isNotEmpty(endTime)){
            endTime = endTime+" 23:59:59";
        }
        this.endTime = endTime;
    }

    public String getSortType() {
        return sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public LimitHelper getLimitHelper() {
        return limitHelper;
    }

    public void setLimitHelper(LimitHelper limitHelper) {
        this.limitHelper = limitHelper;
    }
}
